package cn.wolfcode.crm5.service.impl;

import cn.wolfcode.crm5.domain.User;
import cn.wolfcode.crm5.mapper.UserMapper;
import cn.wolfcode.crm5.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    //用户登录
    @Override
    public User login(String name, String password) {
        User user = userMapper.login(name,password);
        return user;
    }
}
